package com.jnu.hc.jnuhcusercms.controller;

import com.jnu.hc.jnuhcusercms.dto.OrderListRequestDto;
import com.jnu.hc.jnuhcusercms.dto.ResponseObject;
import com.jnu.hc.jnuhcusercms.service.OrderListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.TimeZone;

@RestController
public class OrderListController {

    @Autowired
    OrderListService orderListService;

    @RequestMapping("/ordersList")
    public ResponseObject orderList(@RequestBody OrderListRequestDto orderListRequestDto){
        System.out.println(TimeZone.getDefault());
        return orderListService.orderList(orderListRequestDto);
    }
}
